/**
 * Created by changshuiwang on 2016/7/25.
 */
$(function(){
    $(".glyphicon-trash").click(function(){
        var data=$(this).attr("url");
        $.ajax({
            url:"/site/delete",
            data:"id="+data,
            success:function(msg){
                alert(msg);
                window.location.reload();
            }
        });
    });
    $(".glyphicon-eye-open").click(function(){
        //$.layer();
        //layer.alert("nihao");
        var url=$(this).attr("url");
        layer.open({
            type:2,
            title:'学生详情页',
            area: ['60%', '80%'],
            content:'/site/show?id='+url,
/*            end : function(){ //层彻底关闭后执行的回调
                window.location.reload();
            }*/
        })
    })
})